package com.xq.spring.postprocess.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.xq.spring.beans.Chinese;

/**
 * 测试Bean后处理器的ApplicationContext容器.
 * @author 郭凯强
 */
public class ApplicationContextBF {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext ctx=new ClassPathXmlApplicationContext("cfg-postprocess-bean.xml");
		Chinese chinese=ctx.getBean("chinese",Chinese.class);
		chinese.useAxe();
	}
}
